package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//@MapperScan("com.itheima.mapper")
@SpringBootApplication
@Slf4j
@EnableTransactionManagement//开启对事务管理的支持
//在引导类  配置类上打了该注解后会自动扫描项目中的@WebServlet
//@WebFilter @WebListener注解 自动注册Servlet的相关主件
@ServletComponentScan
//开启springCache注解 开启缓存功能
@EnableCaching
public class ReggieSsmApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieSsmApplication.class, args);
        log.info("项目启动成功...");
    }

}
